<?php
// 定义带有 HTML 标签的字符串
$taggedString = '<a href="https://dl.openwrt.ai/releases/targets/x86/64/openwrt-07.26.2024-x86-64-generic-squashfs-combined-efi.vmdk.zip" class="download-link"><span></span>07.26-GENERIC-SQUASHFS-COMBINED-EFI.VMDK.ZIP</a>';

// 使用 htmlspecialchars 转义特殊字符
$escapedString = htmlspecialchars($taggedString, ENT_QUOTES | ENT_HTML5, 'UTF-8');

echo "原始字符串：<br>\n";
echo $escapedString . "<br><br>";

echo "解析后的字符串：<br>\n";
echo $taggedString;
?>